package com.learn.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Person implements Serializable {
    private int id;
    //@ExcelProperty(value = "姓名",index = 0)
    private String name;
    //@ExcelProperty(value = "年龄",index = 1)
    private int age;
    //@ExcelProperty(value = "性别",index = 2)
    private int sex;
    private long createtime;
    private String dateCreateTime;
    private String updatetime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String getDateCreateTime() {
        return dateCreateTime;
    }

    public void setDateCreateTime(String dateCreateTime) {
        this.dateCreateTime = dateCreateTime;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", createtime=" + createtime +
                ", dateCreateTime=" + dateCreateTime +
                ", updatetime='" + updatetime + '\'' +
                '}';
    }
}
